package com.wxzz.elearing.pay;

import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitScan;
import com.wxzz.elearing.pay.service.impl.PayLogServiceImpl;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.time.LocalDateTime;
import java.util.Properties;

@EnableScheduling
@EnableFeignClients
@SpringBootApplication(scanBasePackages = "com.wxzz.*")//扫描工具类的包
@RetrofitScan("com.wxzz.elearing.pay")
@EnableSwagger2
@MapperScan(basePackages = "com.wxzz.elearing.pay.mapper")
public class PayApp {
    private static ConfigurableApplicationContext context;

    public static void main(String[] args) {
        PayApp.context = SpringApplication.run(PayApp.class);
//        System.err.println(LocalDateTime.now());
//        context.close();
//        PayApp.context = SpringApplication.run(PayApp.class);
//        System.err.println(LocalDateTime.now());
    }



}
